//
//  PSSingleRowView.h
//  Btpin
//
//  Created by Vic on 2019/3/13.
//  Copyright © 2019 Vic. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PublicCategoryElementModel.h"

@class PSSingleRowView;

NS_ASSUME_NONNULL_BEGIN
@protocol PSSingleRowViewDelegate <NSObject>
@optional
- (void)psSingleRowViewCancel:(PSSingleRowView *)psSingleRowView;
- (void)psSingleRowViewOk:(PublicCategoryElementModel *)model PSSingleRowView:(PSSingleRowView *)psSingleRowView;
@end

@interface PSSingleRowView : UIButton

@property (nonatomic, weak) id<PSSingleRowViewDelegate>delegate;

- (instancetype)initWithData:(NSArray<PublicCategoryElementModel *> *)dataArray target:(id)target;

@end

NS_ASSUME_NONNULL_END
